
using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.SimpleTemp.Repositories.Internal;
using Microsoft.EntityFrameworkCore;
using System.Linq;

namespace Core.SimpleTemp.Repositories
{
    [AutoDi()]//注意这里 自动DI
    public class YH_StandingBookRepository : BaseDBRepository<YH_StandingBook>
    //统一继承BaseDBRepository并传入`Entity`泛型参数
    {
        public YH_StandingBookRepository(CoreDBContext dbContext) : base(dbContext)
        {
        }


        public override IQueryable<YH_StandingBook> QueryBase()
        {
            return base.QueryBase().Include(u => u.YH_StandingBookAttachment);
        }
    }
}
